Skip to content

refactor(verify): delegate cert-chain verification to agent-manifest 0.5#60

Merged
imran-siddique merged 1 commit into
mainfrom
refactor/shared-verifiers
Jul 21, 2026
Merged

refactor(verify): delegate cert-chain verification to agent-manifest 0.5#60
imran-siddique merged 1 commit into
mainfrom
refactor/shared-verifiers

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Consolidates ca2a's attestation crypto onto agent-manifest's shared verification library (0.5.0, via PyPI) — removing the org's last duplicated certificate-chain verifier.

What changed

ca2a_verify.verify_cert_chain — used identically by the SEV-SNP VCEK chain, the TDX PCK chain, and the TPM AK chain — is now a thin wrapper over agent_manifest.verify_cert_chain (the generic, algorithm-agnostic verifier: EC / RSA-PSS / RSA-PKCS#1 v1.5, fingerprint-pinned root). Its CertChainError is re-raised as ca2a's AttestationFailed so the error contract is unchanged.

What stays local (deliberately)

ca2a's report/quote parsers, per-format signature checks, appraisal/assurance result shapes, caller-supplied trust-root pinning, and verify_offer semantics — ca2a orchestration, not shared crypto.

Guarantees

Behavior unchanged, no check weakened. The chain tests (incl. the real AMD Milan ARK/ASK and Intel SGX Root CA fixtures) still pass on the shared verifier. All 201 tests pass unchanged; ruff + mypy clean. Adds agent-manifest>=0.5.

With this + cmcp#413, all three repos (agent-manifest, cmcp, ca2a) share one verification library via PyPI; no duplicated attestation crypto remains.

🤖 Generated with Claude Code

Removes ca2a's last duplicated attestation crypto. ca2a_verify.verify_cert_chain
(shared by the SEV-SNP VCEK, TDX PCK, and TPM AK chains) now delegates to
agent_manifest.verify_cert_chain, the org's shared generic algorithm-agnostic
verifier, re-raising CertChainError as AttestationFailed to preserve ca2a's
contract. ca2a keeps its own parsers, per-format signature checks, appraisal
shapes, trust-root pinning, and verify_offer semantics.

Dep: adds agent-manifest>=0.5. 201 tests pass unchanged; ruff + mypy clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit f1b3a43 into main Jul 21, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant